import request from '@/utils/request'

// 查询预测报表列表
export function listPrediction(query) {
  return request({
    url: '/snowRemoving/prediction/list',
    method: 'get',
    params: query
  })
}

// 查询预测报表详细
export function getPrediction(id) {
  return request({
    url: '/snowRemoving/prediction/' + id,
    method: 'get'
  })
}

// 新增预测报表
export function addPrediction(data) {
  return request({
    url: '/snowRemoving/prediction',
    method: 'post',
    data: data
  })
}

// 修改预测报表
export function updatePrediction(data) {
  return request({
    url: '/snowRemoving/prediction',
    method: 'put',
    data: data
  })
}

// 删除预测报表
export function delPrediction(id) {
  return request({
    url: '/snowRemoving/prediction/' + id,
    method: 'delete'
  })
}



export function predictionInfo(road) {
  return request({
    url: '/snowRemoving/prediction/latest',
    method: 'get',
    data: road
  })
}

